﻿<%@ Page Language="C#" MasterPageFile="~/Share.Master" AutoEventWireup="true" CodeBehind="works.aspx.cs" Inherits="Web.works" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<form id="form1" runat="server">
<div class="main content">
  <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="True">
          <ContentTemplate>
	<div class="nav">
		<ul class="worksnavlist">
			<li><span><a href="works.aspx?wid=0">全部</a></span></li>
			<asp:Repeater ID="WorkCategoryRepeater" runat="server">
			  <ItemTemplate>
			    <li class="<%# Eval("CurrentFlag")%>"><span><a href="works.aspx?wid=<%# DataBinder.Eval(Container.DataItem, "CategoryID") %>"><%# DataBinder.Eval(Container.DataItem, "CategoryName") %></a><%# Eval("CategoryNew")%></span></li>
			  </ItemTemplate>
            </asp:Repeater>
		</ul>
		<asp:Label ID="lbl_NowPage" runat="server" Visible="False"></asp:Label>
		<div class="nppager">
		<asp:ImageButton ID="btn_pre" runat="server" ImageUrl="~/images/wnp.png" 
                onclick="btn_pre_Click" />
    	 <asp:ImageButton ID="btn_next" runat="server" ImageUrl="~/images/wnn.png" 
                onclick="btn_next_Click" />
		</div>
	</div>
    <div class="worklist">
            <asp:DataList ID="WorksList" runat="server" RepeatColumns="4" RepeatDirection="Horizontal">
          <ItemTemplate>
            <div class="workrow">
            <%# Eval("WorkNew")%>
        	<div class="workimg"><%# Eval("WorkHot")%><a href="workreading.aspx?wid=<%# Eval("CategoryID") %>&id=<%# Eval("WorksID")%>"><img src='<%# Eval("PicURL")%>' width="236px" height="150px" /></a></div>
            <div class="worktitle"><a href="workreading.aspx?wid=<%# Eval("CategoryID") %>&id=<%# Eval("WorksID")%>"><%# Eval("Title")%></a></div>
            <div class="workdes"><%# Eval("WorksBrief")%></div>
        </div>
          </ItemTemplate>
        </asp:DataList>
        <div class="listmore">
            <asp:Repeater ID="PageIndexReperter" runat="server">
              <ItemTemplate>
                <a class='<%# Eval("NowPage") %>' href="works.aspx?wid=<%# Eval("CategoryID") %>&pid=<%# Eval("PageIndex") %>"><%# Eval("PageIndex") %></a>
              </ItemTemplate>
            </asp:Repeater>
        </div>
    </div>
    </ContentTemplate>
        </asp:UpdatePanel>
</div>
</form>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="jsContent" runat="server">
<script language="javascript" type="text/javascript">
    $(function() { $(".worksnavlist").lavaLamp({ fx: "backout", speed: 700 }) });
        
</script>
</asp:Content>